package cn.geminis.devops.jenkins;

def build() {
    withMaven(maven: env.MAVEN_ENV) {
        sh 'mvn clean package'
    }
}

def install() {
    withMaven(maven: env.MAVEN_ENV) {
        sh 'mvn install'
    }
}

def publish() {
    withMaven(maven: env.MAVEN_ENV, mavenSettingsConfig: env.MAVEN_CONFIG) {
        sh 'mvn deploy'
    }
}

def getBuildPath() {
    return 'target';
}